package cn.zfs.datasource.entity.model;

import lombok.Data;
import lombok.ToString;



@Data
@ToString
public class TableProperties {

    private String tableSchema;
    private String tableName;
    private String columnName;
    private String columnComment;
    private String isNullable;
    private boolean isNotNull;
    private String dataType;

    public boolean isNotNull() {
        if ("NO".equals(this.isNullable)) {
            this.isNotNull = false;
        } else if ("YES".equals(this.isNullable)) {
            this.isNotNull = true;
        }
        return isNotNull;
    }

}
